import { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { Http } from '@angular/http';
import { ConfigService } from '../config.service';
import { HeadComponent } from '../head/head.component';

declare var $: any;

class getdetail {

  _data = '';

  constructor(public http: Http) {

  }
}

@Component({
  selector: 'app-content-index',
  templateUrl: './content-index.component.html',
  styleUrls: ['./content-index.component.css'],
  providers: [ConfigService]
})
export class ContentIndexComponent implements OnInit {

  data = '';
  cc = '';
  img_api;
  bg1;
  bg2;
  bg3;
  finish: boolean = false;
  constructor(
    private titleSerice: Title,
    private http: Http,
    private config: ConfigService, ) {

    this.img_api = config.getImg();
  }

  ngOnInit() {
      $('.parallax').parallax();
      //设置页面的标题
      this.titleSerice.setTitle('个人旅游定制|全球签证服务');

      //设置图片
      this.bg1 = this.img_api + 'background1.jpg';
      this.bg2 = this.img_api + 'background2.jpg';
      this.bg3 = this.img_api + 'background3.jpg';

  }

}
